package cn.gok.springsecuritydemo02.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
    地址路由Controller
 */
@Controller
public class RoutingController {

    @RequestMapping("/index.html")
    public String toIndexPage() {
        return "index";
    }

    @RequestMapping("/addUser.html")
    public String toAddUserPage() {
        return "addUser";
    }


    @RequestMapping("/product_add.html")
    public String toProduct_addPage() {
        return "product_add";
    }
    @RequestMapping("/product/findAll.html")
    public String toProduct_listPage() {
        return "product_list";
    }
    @RequestMapping("/product_update.html")
    public String toProduct_updatePage() {
        return "product_update";
    }
    @RequestMapping("/user_add.html")
    public String toUser_addPage() {
        return "user_add";
    }
    @RequestMapping("/user/findAll")
    public String toUser_listPage() {
        return "user_list";
    }
    @RequestMapping("/user_update.html")
    public String toUser_updatePage() {
        return "user_update";
    }
}
